package cn.anlaser.status;

public enum DataCheckEnum {
	edit("edit"), uncheck("un_check"), checked("checked");
	private String code;

	DataCheckEnum(String code) {
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public static DataCheckEnum findByCode(String code) {
		for (DataCheckEnum userKind : DataCheckEnum.values()) {
			if (userKind.getCode().equals(code)) {
				return userKind;
			}
		}
		return null;
	}
}
